package com.summer;

import com.summer.entity.Dish;
import com.summer.service.DishService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class JdbcConnection131 {

    @Autowired
    private DishService dishService;

    @Test
    public void connectionTest(){
        List<Dish> list = dishService.list();
        for (Dish dish : list) {
            System.out.println(dish);
        }
    }
}
